package com.sekill.order.service.impl;

import com.sekill.order.entity.Order;
import com.sekill.order.mapper.OrderMapper;
import com.sekill.order.service.IOrderService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author gao
 * @since 2021-06-18
 */
@Service
public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements IOrderService {


    @Autowired
    private OrderMapper orderMapper;

    @Override
    public Order order(Long orderId,Long userId) {
        return orderMapper.order(orderId,userId);
    }

    @Override
    public int findbyuseridandskuid(Long orderId, Long userId) {
        return orderMapper.findbyuseridandskuid(orderId,userId);
    }

}
